package main

import "fmt"

func main() {
	myList := []string{"I", "am", "stupid", "and", "weak"}
	fmt.Printf("转换前： %+v\n", myList)

	for index, value := range myList {
		switch value {
		case "stupid":
			myList[index] = "smart"
		case "weak":
			myList[index] = "strong"
		default:
		}
	}

	fmt.Printf("转换后: %+v\n", myList)
}
